package com.example.demo.entity;

import javax.persistence.*;
import java.util.List;

/**
 * Created by pengwan on 2017/7/31.
 */
@Entity
@Table(name = "t_customer")
public class Customer extends EntityId {
    @Column(name = "customer_name")
    private String customerName;
    @Embedded
    private Address address;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

}
